package com.zw.design.pattern.creational.behavioral.templatemetod;

public class IOSCourse extends ACourse{
    @Override
    void packageCourse() {
        System.out.println("提供课程的IOS 代码");
        System.out.println("提供课程的图片等");
    }
    private boolean needWriteArticle;


    public IOSCourse(boolean needWriteArticle) {
        this.needWriteArticle = needWriteArticle;
    }

    @Override
    protected boolean needWriteArticle() {
        return this.needWriteArticle;
    }
}
